package com.ai.controller.networking;


import com.ai.annotation.EnterPathParamLog;
import com.ai.common.CommonResponse;
import com.ai.model.vo.SysNettyLinkVo;
import com.ai.service.networking.impl.SysNettyServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 网络通信管理接口
 * @author chen
 * @since 2023-04-03 21:17:12
 */
@RestController
@RequestMapping("/sys-netty")
public class SysNettyController {

    @Resource
    private SysNettyServiceImpl sysNettyService;

    @ApiOperation("新增链路")
    @PostMapping("addNewComLink")
    @EnterPathParamLog
    public CommonResponse addNewComLink(@RequestBody SysNettyLinkVo nettyLinkVo) {
        CommonResponse resultData = sysNettyService.addNewComLink(nettyLinkVo);
        return resultData;
    }


}

